package org.example.demo10;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Gong.Yang
 */
@Slf4j
public class Repository <D>{
    public Repository(Class<D> dClass) {
    }

    public D log(D d){
        log.info("d.class->{},d->{}",d.getClass(), JSONUtil.toJsonStr(d));
        return d;
    }
}
